import com.woniu.hospital.domain.Bedinfo;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        ArrayList<Bedinfo> arr = new ArrayList<>();
        Bedinfo bedinfo = new Bedinfo();
        bedinfo.setBedId(1l);
        bedinfo.setBedName("ssss");
        arr.add(bedinfo);

        System.out.println(arr);
        for (Bedinfo b : arr) {
            b.setBedLocation("vvvv");
        }
        System.out.println(arr);
    }
}
